In order to improve the performance of Wireless Sensor Network (WSN), a node deployment optimization method based on Enhanced Sine Cosine Algorithm (ESCA) was proposed. Firstly, hyperbolic sine regulatory factor and dynamic cosine wave weight coefficient were introduced to balance the global exploration and local exploitation capability of the algorithm. Then, a mutation strategy based on Laplacian and Gaussian distribution was proposed to avoid the algorithm falling into local optimum. The experimental results of benchmark function optimization show that, compared with gravitational search algorithm, whale optimization algorithm, basic Sine Cosine Algorithm (SCA) and improved algorithms, ESCA has better convergence accuracy and convergence speed. Finally, ESCA was applied to WSN node deployment optimization. The results show that, compared with enhanced particle swarm optimization algorithm, extrapolation artificial bee colony algorithm, improved grey wolf optimization algorithm and self-adaptive chaotic quantum particle swarm algorithm, ESCA has improved the coverage rate by 1.55 percentage points, 7.72 percentage points, 2.99 percentage points and 7.63 percentage points respectively, and achieves the same target precision with fewer nodes.
In Wireless Sensor Network (WSN), to deal with the energy limitation of nodes and the energy consumption of broadcast routing, a new WSN broadcast routing algorithm based on the improved Discrete Fruit fly Optimization Algorithm (DFOA) was proposed. Firstly, the swap and swap sequence were introduced into the Fruit fly Optimization Algorithm (FOA) to obtain DFOA, which expands the applications field of FOA. Secondly, the step of fruit fly was controlled by the Lévy flight to increase the diversity of the samples, and the position updating strategy of population was also improved by the roulette selection to avoid the local optimum. Finally,the improved DFOA was used to optimize the broadcast routing of WSN to find the broadcast path with minimum energy consumption. The simulation results show that the improved DFOA reduces the energy consumption of broadcast and has better performance than comparison algorithms including the original DFOA, Simulated Annealing Genetic Algorithm (SAGA), Ant Colony Optimization (ACO) and Particle Swarm Optimization (PSO) in different network. The improved DFOA can increase the diversity of the samples, enhance the ability of escaping from local optimum and improve the network performance.